package com.enums.basicLearning;

public enum Weekend {
    MON(1, "mon"), TUS(2, "tus"), WED(3, "wed"), THU(4, "thu"), FRI(5, "fri"), SAT(6, "sat"), SUN(0, "sun");

    private int value;
    private String label;

    private Weekend(int value, String label) {
        this.value = value;
        this.label = label;
    }


    public static void main(String[] args) {
        for (Weekend value : Weekend.values()) {
            System.out.println(value + ".ordinal()  ====>" + value.ordinal());

        }
    }
}
